package com.carSys.Service;

import com.carSys.Entity.Assignment;
import com.carSys.Entity.RemindRecord;
import com.carSys.Mapper.RemindRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RemindRecordService {

    @Autowired
    private RemindRecordMapper remindRecordMapper;

    public boolean remind(long assignmentId) {
        return remindRecordMapper.remind(assignmentId) > 0;
    }

    public boolean deal(long assignmentId) {
        return remindRecordMapper.deal(assignmentId) > 0;
    }

    public RemindRecord getRemindRecordByAssignmentId(long assignmentId) {
        return remindRecordMapper.getRemindRecordByAssignmentId(assignmentId);
    }
}
